﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using FarseerPhysics.Dynamics;

namespace BattleToast
{
    public class MainCharacter: Character
    {
        Weapon currentWeapon;        
        List<Weapon> weapons;

        public List<Weapon> Weapons
        {
            get { return weapons; }
            set { weapons = value; }
        }

        public Weapon CurrentWeapon
        {
            get { return currentWeapon; }
            set { currentWeapon = value; }
        }

        public MainCharacter(World world, Texture2D texture, Vector2 position, Vector2 size, int currentFrame, int health, Weapon weapon) : base(world, texture, position, size, currentFrame, health)
        {
            this.currentWeapon = weapon;

        }
        public void addWeapon(Weapon w)
        {
            weapons.Add(w);
        }

        public Weapon getWeapon(int i)
        {
            if (i < weapons.Count)
                return weapons[i];
            else
                //TODO: Ova ne treba vaka
                return null;
        }
    }
}
